﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class wjzx_Copyright : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        AdminCs.CheckLoginState();
        if (!IsPostBack)
        {
            txt_copy();
        }
    }
    private void edit_copy()
    {
        string Content = ftbContent.Text.Trim();
        string sqlstr = "update wj_Copyright set Copyright = '" + Content + "'";
        Class1.ExecSql(sqlstr);
        Response.Write("<script language=javascript>alert('修改成功！');window.location='Copyright.aspx';</script>");
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        edit_copy();
    }
    private void txt_copy()//显示内容
    {
        DataTable dt = Class1.ExecSel("select Copyright from wj_Copyright");
        ftbContent.Text = Convert.ToString(dt.Rows[0]["Copyright"].ToString());
    }
}
